package lion.framework.core.task.builder;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * ScheduleBuilder管理类
 * 
 * @author lion
 * @email hl_0074@sina.com
 * @date 2015年8月6日
 */
public class ScheduleBuilderManager {

	public static final String DEFAULT_BUILDER_NAME = "default";

	private final static Map<String, IScheduleBuilder> builders = new HashMap<>();

	public static void add(String type, IScheduleBuilder builder) {

		builders.put(type, builder);
	}

	public static IScheduleBuilder get(String type) {

		return builders.get(type);
	}

}
